#include<stdio.h>
#include<string.h>
#include<ctype.h>
int main()
{
	char s[100];
	while(fgets(s,sizeof(s),stdin)!=NULL)
	{
		size_t len=strlen(s);
		if(len>0&&s[len-1]=='\n')
		{
			s[len-1]='\0';
		}
		char c;
		int i,j,n;
		n=strlen(s);
		for(i=0,j=n/2-1;i<j;i++,j--)
		{
			c=s[i];
			s[i]=s[j];
			s[j]=c;
		}
		for(i=n/2+n%2,j=n-1;i<j;i++,j--)
		{
			c=s[i];
			s[i]=s[j];
			s[j]=c;
		}
		puts(s);
	}
	
	return 0;
} 
